package com.sinochem.yunlian.ship.base.entity;

import lombok.Data;

@Data
public class BsNodeItem {
    private Long id;

    private Long nodeId;

    private String itemName;

    private String itemKey;

    private Integer dataType;

    private Integer required;

    private Integer seqNum;

    private Integer status;

    private Integer parent;
    private Integer parentId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getNodeId() {
        return nodeId;
    }

    public void setNodeId(Long nodeId) {
        this.nodeId = nodeId;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName == null ? null : itemName.trim();
    }

    public String getItemKey() {
        return itemKey;
    }

    public void setItemKey(String itemKey) {
        this.itemKey = itemKey == null ? null : itemKey.trim();
    }

    public Integer getDataType() {
        return dataType;
    }

    public void setDataType(Integer dataType) {
        this.dataType = dataType;
    }

    public Integer getRequired() {
        return required;
    }

    public void setRequired(Integer required) {
        this.required = required;
    }

    public Integer getSeqNum() {
        return seqNum;
    }

    public void setSeqNum(Integer seqNum) {
        this.seqNum = seqNum;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", nodeId=").append(nodeId);
        sb.append(", itemName=").append(itemName);
        sb.append(", itemKey=").append(itemKey);
        sb.append(", dataType=").append(dataType);
        sb.append(", required=").append(required);
        sb.append(", seqNum=").append(seqNum);
        sb.append(", status=").append(status);
        sb.append("]");
        return sb.toString();
    }
}